<%--
  Created by IntelliJ IDEA.
  User: bonoh
  Date: 2023/10/25
  Time: 13:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>累加求和</title>
</head>
<body bgcolor="#ffc0cb">
<h3>这是一个简单的JSP页面</h3>
<%
    int sum = 0;
    for (int i=1;i<=100;i++) {
        sum += i;
    }
%>
<h4>1到100的连续和是：<%=sum%></h4>
</body>
</html>